package com.dino.manager;

import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.link.Link;

import com.dino.manager.clients.ClientSearch;
import com.dino.manager.clients.EditClient;
import com.dino.manager.entities.EditEntity;
import com.dino.manager.entities.EntitySearch;

public class AbstractPage extends WebPage {

	/**
	 * Generated serial version UID.
	 */
	private static final long serialVersionUID = 8351286415614898086L;

	public AbstractPage() {
		add(new Link<ClientSearch>("clientSearchLink"){

			/**
			 * Generated serial version UID.
			 */
			private static final long serialVersionUID = -8393095959345511162L;

			@Override
			public void onClick() {
				setResponsePage(ClientSearch.class);
			}
			
		});
		add(new Link<EditClient>("clientEditLink") {

			/**
			 * Generated serial version UID.
			 */
			private static final long serialVersionUID = -781361666751469298L;

			@Override
			public void onClick() {
				setResponsePage(EditClient.class);
			}
			
		});
		add(new Link<EditEntity>("editEntityLink") {

			/**
			 * Generated serial version UID.
			 */
			private static final long serialVersionUID = -1556205872155126200L;

			@Override
			public void onClick() {
				setResponsePage(EditEntity.class);
			}
			
		});
		add(new Link<EntitySearch>("entitySearchLink") {

			/**
			 * Generated serial version UID.
			 */
			private static final long serialVersionUID = -1410244216588736792L;

			@Override
			public void onClick() {
				setResponsePage(EntitySearch.class);
			}
			
		});
	}
}
